<template>
  <el-card>
    <el-scrollbar max-height="400px">
      <div class="done-item" v-for="item in doneList" :key="item.id">
        <el-tag type="success">{{ item.name }}</el-tag>
      </div>
    </el-scrollbar>
  </el-card>
</template>

<script>
import {defineComponent} from "vue";
import {useStore} from "vuex";

export default defineComponent({
  name: "Done",
  setup() {
    const store = useStore()
    const doneList = store.state.done.doneList
    return {
      doneList
    }
  }
})
</script>

<style lang="scss" scoped>
.done-item {
  height: 30px;
  line-height: 30px;
  font-size: 15px;
  text-align: center;
  padding: 5px 0;
}
</style>
